
# a = '''"afjoaw'afhcaweu'"'''
# b = "afjaw"
# #print(len('h'))
# c = a + b
# d = 2
# c1 = False
# c2 = False
# c3 = True
# print(c1 + c2 + c3)
# print(isinstance(a, str))
# a = 10
# print(f'safewoaj{a}')
# print(f'afwaf{a}')
# a = input ()
# print(f'a is {a}')
# a = int(a)
# print(type(a))
# c = 10
# a = int(input(c))
# print(a)
# b = int(input(f"afd{a}"))
# # print('abcd' < 'abce')
# print(a and b)
# a = 10
# b = 20
# a, b = b, a
# print(a,b)
# a = +-a
# print(a)
# a += 1
# print(f'{a}')
# print(a + 3*True)
# if a:
#     print('yes')
# ind = input(f"元神启动 ")
# if ind:
#     print("你错了")
# elif ind == '0':
#     print('no')
# else:
#     print(666)
# a = input('输入一个整数 ')
# a = int(a)
# if a % 2:
#     print('是奇数')
# elif not(a % 2):
#     print("是偶数")
# num = int(input('输入一个整数'))
# if num > 0:
#     print('是正数')
# elif num == 0:
#     print('是0')
# else:
#     print('是负数')

# year = int(input("请输入年份 "))
# if year % 4 == 0 and year % 100 != 0 or year % 400 == 0:
#     print('是闰年')
# else:
#     print('平年')
# num = int(input('输入一个整数'))
# while num >= 10:
#     print(num)
#     num -= 1
# num = int(input('请输入'))
# while num:
#     num = int(input('请输入'))
#     if num >= 10:
#         print('yes')
#     else:
#         break

# sum = 0
# num = 0
# while num<=100:
#     sum += num
#     num += 1
# print(sum)


# n = int(input('请输入整数 '))
# ret = 1
# i = 0
# while i < n:
#     ret = ret * (i + 1)
#     i += 1
# print(f'{n}的阶乘是{ret}')


# n = int(input('请输入整数 '))
# ret = 1
# Sum = 0
# i = 1
# j = 0
# while i <= n:
#     ret = 1
#     j = 0
#     while j < i:
#         ret = ret * (j + 1)
#         j += 1
#     i += 1
#     Sum += ret
# print(f'结果是{Sum}')
# for i in range(2, 11, 2):
#     print(i)
# for i in range(10, 0, -2):
# print(i)
# thesum = 0
# for i in range(1,101,1):
#     thesum += i
#     if thesum == 1:
#         continue
# print(f'Sum = {thesum}')
# thesum = 0
# count = 0
# num = int(input('输入数 '))
# while num:
#     thesum += num

#     num -= 1
#     count += 1
# ret = thesum / count
# print(f'平均值 = {ret}')
# /def Sum(beg, end):
#     thesum = 0
#     for i in range(beg, end + 1):
#         thesum += i
#     return thesum



# x = 1
#
#
# def swap():
#     global x
#     y = 14
#     return x, y
#
# x, y = swap()
# print(x, y)


# def add(x, y, debug = False):
#     if debug:
#         print(f"x = {x},y = {y}")
#     return x + y
# if else语句中不会对变量作用域有影响

# for i in range(2, 12):
#     x = 10
#     print(i)
# print(i)
# print(f'x = {x}')


# def ret(n):
#     if n == 0 or n == 1:
#         return 1
#     else:
#         return n * ret(n - 1)


# def fib(n):
#     if n == 1 or n == 2:
#         return 1
#     else:
#         return fib(n - 1) + fib(n - 2)


# 左闭右开区间
# a = [1, 2, 3, 4, 5]
# for elem in a:
#     elem += 10
#     print(elem)
# for i in range(0, len(a)):
#     print(a[i])


# a = [1, 2, 3, 4, 5, 6]
# for i in range(0, len(a)):
# print(f'a[{i}] = {a[i]}',end='  ')


# b = [1, 2, 3, 4, 5]
# # b.append('saf')
# b.insert(10, 'asf')
# print(b[::])



# a = [(0, 1, 2, 3, 4, 5, 6, 7, 8, 9), (9, 8, 7, 6, 5, 4, 3, 2, 1, 0)]
# a = [1, 2, 3, 4, 5]
# a[len(a):]=['a']
# a.extend(['a', 'b'])
# a.remove('a')
# a.pop(1)
# a.clear()
# print(a)





# a = [i * 2 for i in range(10)]
# print(a, end=' ')
# b = [i * 2 for i in "abcdef"]
# print(b, end=' ')
# c = [ord(i) for i in "abcdef"]
# print(c, end=' ')

# matrix = [[1, 2, 3],
#           [4, 5, 6],
#           [7, 8, 9]]
# diag = [matrix[i][len(matrix) - 1 - i] for i in range(len(matrix))]
# print(diag)
# s = [['*'] * i for i in range(6)]
# print(s)

# even = [i + 1 for i in range(0, 10) if i % 2 == 0]
# print(even)
# word = ['fa', 'af', 'fs']
# fword = [word[i] for i in range(len(word)) if word[i][-1] ==  'f']
# print(fword)


# a = [i for i in range(10)]
# b = 1, 2, 3, 4, 5, 6, 7, 8
# b *= 3
# print(a[::-1])
# print(b[::-1])
# print(a.count(2))
# print(b.count(2))
# s = 'b is fold'
# print(s.center(15, ' '))
# print(s.ljust(15, ' '))
# print(s.rjust(15, '牛'))
# print(s.zfill(15))


# a = ([1, 2, 3], [4, 5, 6])
# print(id(a))
# a[0][1] = 7
# print(id(a))


# a = [1, 3, 4, 5]
# a[0:3:2] = []
# print(a)
# a = str('1, 2, 3, 4, 5')
# print(a)



# a = [[0] * 2 for i in range(len(gen))]
# a[][0] =


# b = dict(a = 96, b = 97, c = 98)
# a = dict([('a', 96), ('b', 97), ('c', 98), ('d', 99), ('e', 100)])
# print(a)
# print(b)
# print(b)
# b['f'] = 25
# print(b)
# b = dict(a = 96, b = 97, c = 98, d = 99, e = 100, f = 101, g = 102, h = 103, i = 104)
# print(b)
# b = dict(zip(['a','b','c','d','e'], [96,97,98,99,100]))
# print(b)
# b = dict(a = 98, b = 99, c = 100, d = 101)
# print(b)
# b1 = dict(a = 98, b = 99, c = 100, d = 101, e = 102)
# b2 = dict(zip(['a', 'b', 'c', 'd', 'e'], [98, 99, 100, 101, 102]))
# b3 = {'a':98, 'b':99, 'c':100, 'd':101, 'e':102}
# b4 = dict([('a', 98), ('b', 99), ('c', 100), ('d', 101), ('e', 102)])
# print(b1 == b2 == b3 == b4)
# print(b1, b2, b3, b4)
# b.pop('a')
# print(b)
# for i in 'fish':
#     print(i)
#     print(ord(i))
#     b = dict.fromkeys('fish', ord(i))
# print(b)
# b.clear

# a = dict.fromkeys('fish', 250)
# a.update(dict(zip(['a', 'b'], [97, 98])))
# print(a)
# print(a.get('a', '这里没有c'))
# print(a.setdefault('c', 'nb'))
# print(a)


a = [tuple(i for i in range(10)), tuple(j for j in range(9, -1, -1))]
print(f'a = {a}')

